import requests

url = 'https://ifanyi.iciba.com/index.php'
headers = {
    "accept": "application/json, text/plain, */*",
    "accept-encoding": "gzip, deflate, zstd",
    "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
    "cache-control": "no-cache",
    "connection": "keep-alive",
    "content-length": "80",
    "content-type": "application/x-www-form-urlencoded",
    "host": "ifanyi.iciba.com",
    "origin": "https://www.iciba.com",
    "pragma": "no-cache",
    "referer": "https://www.iciba.com/",
    "sec-ch-ua": "\"Microsoft Edge\";v=\"141\", \"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"141\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-site",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0"
}

params = {
    "c": "trans",
    "m": "fyV2",
    "client": "6",
    "auth_user": "key_web_new_fanyi",
    "sign": "URr884T9FUcWKhfcmovL49RriqVIAJSQ%2BxmfU0q7dIE%3D"
}
data = {
    "from": "en",
    "to": "zh",
    "q": "东鹏特饮好喝"
}
res = requests.post(url, headers=headers,params= params,data=data)
print(res.status_code)
print(res.text)
print(res.json())
print("Content-Encoding:", res.headers.get('Content-Encoding'))
print("Content-Type:", res.headers.get('Content-Type'))